import CartIndex from '@/components/cart/index.vue'
import CartConfirm from '@/components/cart/confirm.vue'


//路由列表
const list = [
    {
        path:'index',
        name: 'CartIndex',
        component: CartIndex,
        meta: {IsLogin: true}
    },
    {
        path:'confirm',
        name: 'CartConfirm',
        component: CartConfirm,
        meta: {IsLogin: true}
    }
]

//父路由结构
const layout = {
    template: `<router-view></router-view>`
}

export default [{
    path: '/cart',
    name: 'cart',
    children: list,
    component: layout,
}]